import { WeaTools } from 'ecCom';

export const getApi = params => // 客户卡片栏设置列表
  WeaTools.callApi('/api/crm/Api/condition', 'GET', params);

export const getMenu = params => // 多接口页面获取菜单
  WeaTools.callApi('/api/crm/Api/getMenu', 'GET', params);

export const getIdByFrontPath = params => // 根据接口前端路径获取接口id
  WeaTools.callApi('/api/crm/Api/getIdByFrontPath', 'GET', params);

export const getConditionByGroup = params => // 获取多接口页面数据
  WeaTools.callApi('/api/crm/Api/getConditionByGroup', 'GET', params);

export const getGroupIdByApifront = params => // 根据前端路径获取分组Id
  WeaTools.callApi('/api/crm/Api/getGroupIdByApifront', 'GET', params);

export const getEnterpriseSubName = params => // 根据企业名称-截取
  WeaTools.callApi('/api/crm/enterprise/getEnterpriseSubName', 'GET', params);

export const getSubNameListForList = params => // 根据企业名称-截取
  WeaTools.callApi('/api/crm/enterprise/getSubNameListForList', 'GET', params);
